<%--
  Created by IntelliJ IDEA.
  User: 天火
  Date: 2019-05-12
  Time: 16:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>错误提示</title>
</head>
<body>
错误代码${msg}
<script>
    var t=10;//设定跳转的时间
    setInterval("refer()",1000); //启动1秒定时
    function refer(){
        if(t==0){
            location="home"; //#设定跳转的链接地址
        }
        document.getElementById('show').innerHTML=""+t+"秒后跳转到主页"; // 显示倒计时
        t--; // 计数器递减
        //本文转自：
    }
</script>
<span id="show"></span>
</body>
</html>
